{extend name="layout/common_layout" /}
{block name="body"}
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/skilltype/index')}">技能列表</a></li>
            <li class="layui-this">详情</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <!--<form class="layui-form form-container" action="{:url('admin/skilltype/update')}" method="post">-->
                <form class="layui-form form-container">
                    <div class="layui-form-item">
                        <label class="layui-form-label">类型</label>
                        <div class="layui-input-block">
                            <select name="st_type" lay-verify="required" readonly>
                                <option value="1" {if condition="$detail.st_type==1"} selected="selected"{/if}>应用技能</option>
                                <option value="2" {if condition="$detail.st_type==2"} selected="selected"{/if}>项目类型</option>
                                <option value="3" {if condition="$detail.st_type==3"} selected="selected"{/if}>开发语言</option>
                                <option value="4" {if condition="$detail.st_type==4"} selected="selected"{/if}>开发技能</option>
                                <option value="5" {if condition="$detail.st_type==5"} selected="selected"{/if}>产品/中间件</option>
                                <option value="6" {if condition="$detail.st_type==6"} selected="selected"{/if}>可担任岗位</option>
                                <option value="7" {if condition="$detail.st_type==7"} selected="selected"{/if}>需求类型</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="st_name" value="{$detail.st_name}" required  lay-verify="required"  class="layui-input">
                        </div>
                    </div>
                    {if condition="!empty($detail['st_photo_just'])"}
                        <div class="layui-form-item">
                            <label class="layui-form-label">1图</label>
                            <div class="layui-input-block">
                                    <div class="photo-list">
                                        <img src="{$detail['st_photo_just']}" style="width: 100px;"/>
                                    </div>
                            </div>
                        </div>
                    {/if}

                    {if condition="!empty($detail['st_photo_back'])"}
                        <div class="layui-form-item">
                            <label class="layui-form-label">2图</label>
                            <div class="layui-input-block">
                                <div class="photo-list">
                                    <img src="{$detail['st_photo_back']}" style="width: 100px; background-color: #0C0C0C"/>
                                </div>
                            </div>
                        </div>
                    {/if}
                    <div class="layui-form-item">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block">
                            <input type="radio" name="st_status" value="1" title="启用" {if condition="$detail.st_status == 1"}checked="checked"{/if}>
                            <input type="radio" name="st_status" value="2" title="禁用" {if condition="$detail.st_status == 2"}checked="checked"{/if}>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <p class="layui-btn"><a href="{:url('admin/skilltype/index')}">确定</a></p>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
{/block}
{block name="js"}
<script src="__JS__/ueditor/ueditor.config.js"></script>
<script src="__JS__/ueditor/ueditor.all.min.js"></script>
{/block}
